﻿using Idea.UnitOfWork.Interface;

namespace Idea.Repository.Interface
{
    public interface IRepository<TEntity, in TKey> : IQueryExecuter<TEntity>, IUnitOfWorkable
    {
        TEntity Find(TKey id);
        TEntity Create(TEntity entity);
        TEntity Update(TEntity entity);
        void Delete(TEntity entity);
    }
}
